package com.d.common.config.mybatis;

/**
 * Created by
 */
public class DataSourceContextHolder {
    private static final ThreadLocal<String> local = new ThreadLocal<String>();

    public static ThreadLocal<String> getLocal() {
        return local;
    }
    public static String getJdbcType() {
        return local.get();
    }
    public static void putDataSource(String name){
        local.set(name);
    }

    public static void user() {
        local.set(DataSourceType.user.getType());
    }
}
